From: Erik Moeller Date: Wed, 13 Apr 2005 06:57:31 +0000 (+0000) Subject: handle Special: namespaces in multiple languages X-Git-Tag: 1.5.0alpha1~285 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=90586917b27029042f6a2c3f4f793b9c3f653c45;p=lhc%2Fweb%2Fwiklou.git handle Special: namespaces in multiple languages --- diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index a4acab53ea..d7c14bd43d 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -31,7 +31,8 @@ class ExternalEdit { } function edit() { - global $wgUser, $wgOut, $wgScript, $wgScriptPath, $wgServer; + global $wgUser, $wgOut, $wgScript, $wgScriptPath, $wgServer, + $wgLang; $wgOut->disable(); $name=$this->mTitle->getText(); $pos=strrpos($name,".")+1; @@ -51,7 +52,8 @@ class ExternalEdit { $image = Image::newFromTitle( $this->mTitle ); $url = $wgServer . $image->getURL(); $extension=substr($name, $pos); - } + } + $special=$wgLang->getNsText(NS_SPECIAL); $control = <<